package frank.zou.study.unitils.tutorial.mock.easymock;

import java.util.List;

public class UserService {
	
	private UserDao userDao; 

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void raiseSalaryOfAllUsers(int i) {
		List<User> userList = userDao.findAllUsers();
		for(User user : userList) { 
			userDao.updateSalary(user, i);
		}
//		throw new RuntimeException("method not implemnted yet.");
	}

}
